package com.cloud.lan.integration.submail.sms.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

/**
 * Created by zhouquan on 2022/4/2.
 */
@Data
public class SmsTemplateHandleRes {

    /**
     * error-请求失败;success-请求成功
     */
    private String status;

    private String code;

    private String msg;

    /**
     * 模板ID
     * 创建模板时候返回
     */
    @JSONField(name="template_id")
    private String templateId;

    public static SmsTemplateHandleRes error(String code,String msg){
        SmsTemplateHandleRes handleRes = new SmsTemplateHandleRes();
        handleRes.setStatus("error");
        handleRes.setCode(code);
        handleRes.setMsg(msg);
        return handleRes;
    }
}
